//
//  PlatformIntroductionViewController.m
//  TenThousand
//
//  Created by 宁宁 on 16/7/25.
//  Copyright © 2016年 baixue. All rights reserved.
//

#import "PlatformIntroductionViewController.h"

@interface PlatformIntroductionViewController ()

@end

@implementation PlatformIntroductionViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"平台介绍";
    
    self.view.backgroundColor = [UIColor colorWithRed:237/255.0 green:237/255.0 blue:237/255.0 alpha:1];
    
    [self setView];
}

- (void)setView{
    
    UIView *bgview = [[UIView alloc] initWithFrame:CGRectMake(8, 8, Screen_Width - 16, 1000)];
    bgview.backgroundColor = [UIColor whiteColor];
    
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(12, 12, Screen_Width - 24 - 16, Screen_Height)];
    label.font = [UIFont systemFontOfSize:14];
    label.numberOfLines = 0;
    NSString *introduction = @"　  “萬元富”是杭州升旭投资管理有限公司旗下综合性互联网金融信息服务平台，致力于用互联网的思维和方式为老百姓提供安全可靠的综合性理财服务。其APP上线于2016年#月#日，萬元富资金由银行监管，第三方托管对账户资金安全进行保障，确保投资人的利益不受损失，通过金融产品的创新设计，在保证低风险的前提下，降低门槛，提供给普通老百姓，真正实现“金融普惠于民”。";
    //设置label行距
    NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:introduction];
    NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
    [paragraphStyle setLineSpacing:9];
    [attributedString addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:NSMakeRange(0, [introduction length])];
    label.attributedText = attributedString;
    [label sizeToFit];
    
    bgview.frame = CGRectMake(8, 8, Screen_Width - 16, label.frame.size.height + 24);
    [bgview addSubview:label];
    [self.view addSubview:bgview];
}


@end
